package org.example.demo.model;

import java.math.BigInteger;
import java.util.List;

public class GoodsInfo {
    private BigInteger id;
    private String name;
    private String description;
    private String owner;
    private List<String> historyOwners;
    private BigInteger createTime;
    private List<BigInteger> ownershipTimestamps;

    public BigInteger getId() {
        return id;
    }

    public void setId(BigInteger id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getOwner() {
        return owner;
    }

    public void setOwner(String owner) {
        this.owner = owner;
    }

    public List<String> getHistoryOwners() {
        return historyOwners;
    }

    public void setHistoryOwners(List<String> historyOwners) {
        this.historyOwners = historyOwners;
    }

    public BigInteger getCreateTime() {
        return createTime;
    }

    public void setCreateTime(BigInteger createTime) {
        this.createTime = createTime;
    }

    public List<BigInteger> getOwnershipTimestamps() {
        return ownershipTimestamps;
    }

    public void setOwnershipTimestamps(List<BigInteger> ownershipTimestamps) {
        this.ownershipTimestamps = ownershipTimestamps;
    }

    @Override
    public String toString() {
        return "GoodsInfo{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", description='" + description + '\'' +
                ", owner='" + owner + '\'' +
                ", historyOwners=" + (historyOwners != null ? historyOwners.size() : "null") +
                ", createTime=" + createTime +
                ", ownershipTimestamps=" + (ownershipTimestamps != null ? ownershipTimestamps.size() + " items" : "null") +
                '}';
    }
} 